<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>购物车</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/c/font_4267181_fpk853p7t6c.css" />
    <style>
      body {
        font: 14px/1.5 '微软雅黑';
      }

      table,
      td,
      th {
        border: 1px solid #b4b4b4;
        border-collapse: collapse;
        text-align: center;
        margin: 0 auto;
        padding: 15px 50px;
      }

      caption {
        font-size: 35px;
      }

      .pic {
        width: 100px;
      }

      .color {
        width: 25px;
        height: 25px;
        border-radius: 8px;
        margin: 0 auto;
      }

      .color:nth-child(1) {
        background-color: #000;
      }

      [class*='icon-'] {
        font-size: 30px;
      }

      em:hover {
        color: #5424d6;
        cursor: pointer;
      }
    </style>
  </head>
  <body>
    <table>
      <caption>
        商品列表
      </caption>
      <tr>
        <th>商品</th>
        <th>图片</th>
        <th>单价(元)</th>
        <th>颜色</th>
        <th>库存</th>
        <th>好评率</th>
        <th>操作</th>
      </tr>
      <tr>
        <td>罗技M185鼠标</td>
        <td>
          <img src="../img/M185.jpg" class="pic" />
        </td>
        <td>80</td>
        <td>
          <div class="color"></div>
        </td>
        <td>893</td>
        <td>98%</td>
        <td>
          <em class="iconfont icon-gouwuchekong"></em>
        </td>
      </tr>
    </table>
  </body>
</html>
